package cn.juque.datapipeline.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/**
 * @author JUQUE
 * @version 1.0.0
 * <ul>
 *  <li>simple-generator</li>
 *  <li>驱动信息</li>
 * </ul>
 * {@code @date} 2023-03-31 10:44:27
 **/
@Data
@TableName(value = "DB_DATABASE_INFO")
public class DatabaseInfo extends BaseEntity {

    /**
     * 主键
     */
    @TableId(value = "ID", type = IdType.ASSIGN_UUID)
    private String id;

    /**
     * 别名
     */
    @TableField(value = "ALIAS_NAME")
    private String aliasName;

    /**
     * 数据库类型
     */
    @TableField(value = "DB_TYPE")
    private Integer dbType;

    /**
     * 驱动信息
     */
    @TableField(value = "DRIVER_INFO")
    private String driverInfo;

    /**
     * 访问url
     */
    @TableField(value = "REMOTE_URL")
    private String remoteUrl;

    /**
     * 用户名
     */
    @TableField(value = "USER_NAME")
    private String userName;

    /**
     * 密码
     */
    @TableField(value = "PASSWORD")
    private String password;

}
